<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title>获取当前文档的状态</title>
</head>
<body>
<script type="text/javascript">
    document.write("<b>当前文档的状态：</b>"+document.readyState);
</script>
</body>
</html>
